<template>
  <div id="userLayout">
    <div class="container">
      <div class="top">
        <div class="header">
          <a href="/">
            <img src="~@/assets/logo.png" class="logo" alt="logo" />
            <span class="title">体育管理后台</span>
          </a>
        </div>
      </div>
      <router-view></router-view>
      <div class="footer">
        <div class="copyright">Copyright &copy; 2020 西安类脑感知科技发展有限公司</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "UserLayout",
};
</script>
<style lang="scss" scoped>
#userLayout {
  background: rgba(0, 0, 0, 0.3);
  width: 100vw;
  height: 100vh;
  padding-top: 20vh;
  &.mobile {
    .container {
      .main {
        max-width: 368px;
        width: 100vw;
      }
    }
  }

  .container {
    width: 100vw;
    a {
      text-decoration: none;
    }

    .top {
      text-align: center;
      .header {
        width: 33vw;
        margin: 0 auto;
        padding: 20px;
        background: white;

        .badge {
          position: absolute;
          display: inline-block;
          line-height: 1;
          vertical-align: middle;
          opacity: 0.8;
        }

        .logo {
          height: 44px;
          vertical-align: top;
          border-style: none;
        }

        .title {
          font-size: 30px;
          color: rgba(0, 0, 0, 0.85);
          font-weight: 600;
          margin-bottom: 20vh;
          position: relative;
        }
      }
    }

    .main {
      width: 33vw;
      margin: 0 auto;
    }

    .footer {
      position: absolute;
      width: 100%;
      bottom: 0;
      padding: 0 16px;
      margin: 48px 0 24px;
      text-align: center;

      .copyright {
        //   color: rgba(0, 0, 0, 0.45);
        color: rgba(245, 243, 243, 0.884);
        font-size: 14px;
        margin-bottom: 8px;
      }
    }
  }
}
</style>
